<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资产借出</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <link rel="stylesheet" href="../../css/iconfont.css">
    <link rel="stylesheet" href="../../css/base.css">
    <script src="../../js/jquery-1.11.0.js"></script>
    <script src="../../layui/layui.js"></script>
    <script src="../../js/frameAll.js"></script>
    <style>
        .layui-form {
            margin-top: 30px;
            margin-right: 50px;
        }
    </style>
    <script type="text/javascript">
        function getInfo() {
            return {
                repairNo: $("input[name=repairNo]").val(),
                wxTime: $("input[name=wxTime]").val(),
                wxResult: $("input[name=wxResult]").val(),
                cost: $("input[name=cost]").val(),
                wxComment: $("input[name=wxComment]").val(),
            };
        }

        function setInfo(info) {
            layui.use('form', function () {
                console.log(info);
                var form = layui.form;
                form.val('infoForm', {
                    zcName: info.zc.zcName,
                    repairNo: info.repairNo,
                });
            });
        }
    </script>
</head>
<body>
<div class="cBody">
    <form class="layui-form" lay-filter="infoForm">
        <div class="layui-form-item">
            <label class="layui-form-label">资产名 : </label>
            <div class="layui-input-inline shortInput">
                <input type="text" name="zcName" autocomplete="off" class="layui-input"
                       readOnly="true" style="border:none">
                <input type="hidden" name="repairNo">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">维修时间 : </label>
            <div class="layui-input-inline shortInput">
                <input id="dateSelect" type="text" name="wxTime" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">维修结果 : </label>
            <div class="layui-input-inline shortInput">
                <input type="text" name="wxResult" autocomplete="off" class="layui-input"
                       placeholder="请输入维修结果">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">花费金额 : </label>
            <div class="layui-input-inline shortInput">
                <input type="text" name="cost" autocomplete="off" class="layui-input"
                       placeholder="请输入花费金额">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">维修备注 : </label>
            <div class="layui-input-inline shortInput">
                <input type="text" name="wxComment" autocomplete="off" class="layui-input"
                       placeholder="请输入维修备注">
            </div>
        </div>
    </form>
</div>
<script>
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        //时间选择器
        var endDate = new Date(new Date().getTime());
        laydate.render({
            elem: '#dateSelect',
            min: 1,
            value: endDate,
            format: 'yyyy-MM-dd',
            trigger: 'click',
            calendarL: true,
            btns: ['clear', 'confirm'],
            position: 'fixed',
            showBottom: false,
        });
    });
</script>
</body>
</html>